package ar.uba.dc.tl.mylanga.exception;

import ar.uba.dc.tl.mylanga.node.TIdentifier;

public class UndefinedVariableReferenceException extends SemanticException {

    TIdentifier identifier;

	public UndefinedVariableReferenceException(TIdentifier identifier) {
		super(String.format("Undefined variable %s at line %d column %d", identifier.getText(), identifier.getLine(), identifier.getPos()));
        this.identifier = identifier;
	}

    public TIdentifier getIdentifier() {
        return identifier;
    }
}
